package Plugin_Reprise.editors.my_uvcmd_editor;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class WordProvider {
	

		public static List< String > suggest(String word) {
			ArrayList< String >wordBuffer = new ArrayList< String >(); 
			
			for(String s:KeyWords.getFunctions()) 
				if(s.startsWith(word)) 
					wordBuffer.add(s); 
			
			for(String s:KeyWords.getReservedwords()) 
				if(s.startsWith(word)) 
					wordBuffer.add(s); 
			
			
			Collections.sort(wordBuffer); 
			return wordBuffer; 
		}   
	} 

